package com.jdkreader.annotation.db;


import com.jdkreader.annotation.db.Constraints;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SQLInteger {

    String name() default "";

    /**
     * 设置Constraints的unique的默认值是true
     * @return
     */
    Constraints constraints() default @Constraints(unique = true);
}
